package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CardSchemeDeptMapper;
import com.ruoyi.system.domain.CardSchemeDept;
import com.ruoyi.system.service.ICardSchemeDeptService;

/**
 * 方案部门关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-25
 */
@Service
public class CardSchemeDeptServiceImpl implements ICardSchemeDeptService 
{
    @Autowired
    private CardSchemeDeptMapper cardSchemeDeptMapper;

    /**
     * 查询方案部门关联
     * 
     * @param schemePlan 方案部门关联主键
     * @return 方案部门关联
     */
    @Override
    public CardSchemeDept selectCardSchemeDeptBySchemePlan(String schemePlan)
    {
        return cardSchemeDeptMapper.selectCardSchemeDeptBySchemePlan(schemePlan);
    }

    /**
     * 查询方案部门关联列表
     * 
     * @param cardSchemeDept 方案部门关联
     * @return 方案部门关联
     */
    @Override
    public List<CardSchemeDept> selectCardSchemeDeptList(CardSchemeDept cardSchemeDept)
    {
        return cardSchemeDeptMapper.selectCardSchemeDeptList(cardSchemeDept);
    }

    /**
     * 新增方案部门关联
     * 
     * @param cardSchemeDept 方案部门关联
     * @return 结果
     */
    @Override
    public int insertCardSchemeDept(CardSchemeDept cardSchemeDept)
    {
        return cardSchemeDeptMapper.insertCardSchemeDept(cardSchemeDept);
    }

    /**
     * 修改方案部门关联
     * 
     * @param cardSchemeDept 方案部门关联
     * @return 结果
     */
    @Override
    public int updateCardSchemeDept(CardSchemeDept cardSchemeDept)
    {
        return cardSchemeDeptMapper.updateCardSchemeDept(cardSchemeDept);
    }

    /**
     * 批量删除方案部门关联
     * 
     * @param schemePlans 需要删除的方案部门关联主键
     * @return 结果
     */
    @Override
    public int deleteCardSchemeDeptBySchemePlans(String[] schemePlans)
    {
        return cardSchemeDeptMapper.deleteCardSchemeDeptBySchemePlans(schemePlans);
    }

    /**
     * 删除方案部门关联信息
     * 
     * @param schemePlan 方案部门关联主键
     * @return 结果
     */
    @Override
    public int deleteCardSchemeDeptBySchemePlan(String schemePlan)
    {
        return cardSchemeDeptMapper.deleteCardSchemeDeptBySchemePlan(schemePlan);
    }
}
